import requests
url = 'http://www.kfc.com.cn/kfccda/ashx/GetStoreList.ashx?op=keyword'
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'}
city = input('enter a city:')
date = {'cname': '','pid': ' ','keyword': city,'pageIndex': '1','pageSize': '10'}
response = requests.post(url=url,data=date,headers=headers)
page_text = response.text
print(page_text)